<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../../taglibs.jsp" %>
<div class="content-right">
	<div class="content-r-pic_w">
		<div style="margin:8px auto auto 12px;margin-top:6px">
			<span class="page_title">进货订单明细</span>
		</div>
	</div>
	<div class="content-text">
			<div class="square-o-top">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					style="font-size:14px; font-weight:bold; font-family:"黑体";">
					<tr>
						<td height="30">企业名称:</td>
						<td class="order_show_msg">
						<s:property value="order.supplier.name"/>
						</td>
						<td>下单时间:</td>
						<td class="order_show_msg">
						<s:property value="order.createTime"/>
						</td>
						<td>下 单 人:</td>
						<td class="order_show_msg">
						<s:property value="order.orderCreater.name"/>
						</td>
						<td>订 单 号:</td>
						<td class="order_show_msg" colspan="2">
						<s:property value="order.orderNum"/>
						</td>
					</tr>
					<tr>
						<td height="30">订单类别:</td>
						<td class="order_show_msg">
						<!-- 自定义便签使用EL表达式取值 -->
					<e:OrderTypeText orderType="${order.orderType }"></e:OrderTypeText>
						</td>
						<td>订单状态:</td>
						<td class="order_show_msg">
				    <e:OrderStateText orderType="${order.orderType}" orderState="${order.orderState}"></e:OrderStateText>
						</td>
						<td>商品总量:</td>
						<td class="order_show_msg">
						<s:property value="order.totalNum"/>
						</td>
						<td>订单总额:</td>
						<td class="order_show_msg">
						<s:property value="order.totalPrice"/>元
						</td>
					</tr>
				</table>
			</div>
			<!--"square-o-top"end-->
			<div class="square-order">
				<center style="text-decoration:underline;font-size:16px; font-weight:bold; font-family:"黑体";">&nbsp;&nbsp;&nbsp;&nbsp;订&nbsp;&nbsp;单&nbsp;&nbsp;明&nbsp;&nbsp;细&nbsp;&nbsp;&nbsp;&nbsp;</center>
				<br/>
				<table width="100%" border="1" cellpadding="0" cellspacing="0">
					<tr align="center"
						style="background:url(${path}/images/table_bg.gif) repeat-x;">
						<td width="20%" height="30">商品类别</td>
						<td width="20%">商品名称</td>
						<td width="20%">购买数量</td>
						<td width="20%">进货单价</td>
						<td width="20%">合计</td>
					</tr>
					<s:iterator value="details" var="detail">
					<tr align="center" bgcolor="#FFFFFF">
						<td height="30">
						<s:property value="#detail.product.productType.name"/>
						</td>
						<td>
						<s:property value="#detail.product.name"/>
						</td>
						<td>
						<s:property value="#detail.detailNum"/>
						</td>
						<td align="right">
						<s:property value="#detail.detailPrice"/>
						 元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
						<td align="right">
						<s:property value="#detail.detailPrice*#detail.detailNum "/>
						元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
				   	</tr>
					</s:iterator>
					<tr align="right">
						<td height="30" width="80%" colspan="4">总计&nbsp;&nbsp;</td>
						<td width="20%"><s:property value="order.totalPrice"/>元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
				</table>
				<br/>
			</div>
	</div>
	<div class="content-bbg"></div>
</div>
